#ifndef  __MEAS_H
#define  __MEAS_H

//----------------------------------Include-------------------------------------
#include  <stdint.h>
//------------------------------------------------------------------------------

//-----------------------------------Macro--------------------------------------
#define WARN_CH4_EARLY              (1<<0)
#define WARN_CH4_HIGH               (1<<1)
#define WARN_CH4_ERR_SNSR           (1<<2)
#define WARN_CH4_ERR_COMM           (1<<3)
#define WARN_TEMP_LOW               (1<<4)
#define WARN_TEMP_HIGH              (1<<5)
#define WARN_IMMER                  (1<<6)
#define WARN_MOVE                   (1<<7)
#define WARN_BAT_LOW                (1<<8)
//------------------------------------------------------------------------------

//------------------------------------Type--------------------------------------
//------------------------------------------------------------------------------

//---------------------------------Share Var------------------------------------
#ifdef  MEAS_GLOBALS
#else
extern uint32_t                    gu32_warn;
extern uint32_t                    gu32_bat;
extern uint32_t                    gu32_cmd_meas;
extern uint32_t                    gu32_ble_meas;
extern uint32_t                    gu32_ble_gps;
extern uint32_t                    gu32_ble_cnct;
extern uint32_t                    gu32_ble_cfg;
#endif
//------------------------------------------------------------------------------

//----------------------------------Declare-------------------------------------
void meas_rt_data(char* p);
void meas_gps_data(char* p);
void meas_cyc(void);
//------------------------------------------------------------------------------

#endif
//------------------------------------EOF---------------------------------------



